<template>
  <div id="app">
    <el-header>
      <Navbar />
    </el-header>

    <el-main>
      <router-view />
    </el-main>
  </div>
</template>

<script>
import Navbar from './components/Navbar.vue';
import Home from './components/home.vue'; // 导入 Home 组件
import Restaurant from "./components/restaurant.vue";
import User from "./components/user.vue";
export default {
  name: 'App',
  components: {
    Navbar,
    Home,
    Restaurant,
    User,
  },

};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  //text-align: center;
  //color: #2c3e50;
  margin-top: 0; /* 为固定在顶部的导航栏留出空间 */
}
</style>